<?php
        include_once("./_common.php");
        set_include_path(get_include_path().PATH_SEPARATOR.'lib');
        $g4_path = './';
        ob_start();
        header("Content-type: text/html; charset=utf-8");
        require_once ('lib.php');
        require_once ('common.php');
        require_once ('lib/Template_.class.php');

        $tpl = new Template_();
        $tpl->template_dir = './tpl';
        $tpl->compile_dir = './tpl/compile';
        $tplFileName  = $tpl->template_dir.'/'.basename($_SERVER['PHP_SELF']);
        $a = file_exists($tplFileName);
        if($a) {
                $tpl->define('basic', basename($tplFileName));
        }
